package com.xiaofeng.pochi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaofeng.pochi.common.Page;
import com.xiaofeng.pochi.pojo.SysBanner;
import com.xiaofeng.pochi.pojo.SysLog;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/08/05/23:00
 * @Description:
 */
public interface SysBannerMapper extends BaseMapper<SysBanner> {
    List<SysBanner> getByPage(Page<SysBanner> page);

    int countByPage(Page<SysBanner> page);

    /**
     * 查询首页轮播图
     * @return
     */
    List<SysBanner> getBannerList();


    /**
     * 更新点击量
     * @param id
     */
    void updateClickCount(Long id);
}
